//
//  Loan_BaseInfoCommonView.m
//  JinFuThree
//
//  Created by 爱尚 on 2018/9/13.
//  Copyright © 2018年 毛韶谦. All rights reserved.
//

#import "Loan_BaseInfoCommonView.h"

@implementation Loan_BaseInfoCommonView

-(instancetype)init{
    self = [super init];
    if (self) {
        
        _leftLabel = [[UILabel alloc]init];
        _leftLabel.textColor = ThemeMaoBlackColor;
        _leftLabel.font = UIFontMaoNormal;
        [self addSubview:_leftLabel];
        [self.leftLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(self.mas_left).offset(15);
            make.centerY.mas_equalTo(self.mas_centerY);
            make.width.mas_offset(@60);
        }];
        
        _rightLabel = [[UILabel alloc]init];
        _rightLabel.textColor = ThemeMaoBlackColor;
        _rightLabel.font = UIFontMaoNormal;
        _rightLabel.textAlignment = NSTextAlignmentRight;
        [self addSubview:_rightLabel];
        [self.rightLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.right.mas_equalTo(self.mas_right).offset(-15);
            make.centerY.mas_equalTo(self.mas_centerY);
            make.left.mas_equalTo(self.leftLabel.mas_right).offset(50);
            make.height.mas_equalTo(self);
        }];
        _line = [[UIView alloc]init];
        _line.backgroundColor = HexColor(0xEEEEEE);
        [self addSubview:_line];
        [self.line mas_makeConstraints:^(MASConstraintMaker *make) {
            make.height.mas_offset(@0.5);
            make.left.mas_equalTo(self.leftLabel.mas_left);
            make.right.mas_equalTo(self.rightLabel.mas_right);
            make.bottom.mas_equalTo(self.mas_bottom);
        }];
        
    }
    return self;
}
@end
